package com.hrp.controller;

import com.hrp.domain.ResponseData;
import com.hrp.service.LcjjService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2018/9/18 0018.
 */
@RestController
@RequestMapping("/lcjj")
public class LcjjController {


    @Autowired
    private LcjjService lcjjService;

    @RequestMapping("/caculateJJ")
    public ResponseData caculateJJ(Integer zqid){

        try{
            lcjjService.caculateJJ(zqid);
            return ResponseData.ok();
        }catch (Exception e){
            e.printStackTrace();
            return ResponseData.build(500,"计算奖金失败",null);
        }
    }

}
